package org.ccay.validator;

import java.util.List;

/**
 *  字段级别的验证错误
 * 
 * @since Mar 1, 2012
 */
public class FieldValidationMessage extends ValidationMessage {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6320362328659396124L;
	
	/** Field名称 **/
	private String fieldName;
	
	private List<String> messages;
	
	/**
	 * 设置消息对应的Field的名称	
	 * 
	 * @since Mar 1, 2012
	 * @return
	 */
	public String getFieldName() {
		return this.fieldName;
	}
	
	/**
	 * 获取消息对应的Field名称	
	 * 
	 * @since Mar 1, 2012
	 * @param fieldName
	 */
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	/**
	 * 获取错误消息列表	
	 * 
	 * @since Mar 1, 2012
	 * @return
	 */
	public List<String> getMessages() {
		return messages;
	}

	/**
	 * 设置错误消息列表	
	 * 
	 * @since Mar 1, 2012
	 * @param messages
	 */
	public void setMessages(List<String> messages) {
		this.messages = messages;
	}

}
